package com.fusion.launchers;

/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 16, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class OSInfo {
    private static boolean supportsTrayIcon;

    public static boolean supportsTrayIcon() {
        return supportsTrayIcon;
    }

    public static boolean isLinux() { 
    	return System.getProperty("os.name").toUpperCase().indexOf("LINUX") != -1; 
    }

    public static boolean isWindows() {
        return System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") != -1;
    }

    public static boolean isMac() {
        return System.getProperty("os.name").toUpperCase().indexOf("MAC") != -1;
    }

    /* This is set when starting Fusion */
    public static void setSupportsTrayIcon(boolean b) {
        supportsTrayIcon = b;
    }
}
